define(['underscore','backbone','jquery','views/users/list'],function(_,Backbone,$,UserListView){
	var UsersRouter=Backbone.Router.extend({
		routes:{
			"":"index",
			"agregar":'add'
		},
		index:function(){	
			
		},
		initialize:function(options){		
			this.mainContainter=options.mainContainer;
			this.defaultUrl=options.defaultUrl;
			var that=this;
			 $(function(){
					var userListView=new UserListView({el:$('#'+that.mainContainter)
						,url:that.defaultUrl});
					userListView.render();	
			  });
		}
	});
	return UsersRouter;
});